package android.longs.study.sign.servlert;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

import android.longs.study.base.HomeServlet;
import android.longs.study.sign.service.UserSignService;
import android.longs.study.sign.service.UserSignServiceImple;

@WebServlet("/sign/add")
public class AddUserSignServlert extends HomeServlet {

    private UserSignService service = new UserSignServiceImple();
    @Override
    public void doRequestFunction(HttpServletRequest request,
	    HttpServletResponse response) {


	try {
	    System.out.println("签到");
	    String addUserSign = service.addUserSign(request);
	    System.out.println(addUserSign);
	    response.getWriter().write(addUserSign);

	} catch (Exception e) {
	    // TODO: handle exception
	}
    }

}
